package com.xiaoyin.community.Domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

/**
 * Created by yinjianping@baidu.com on 2018/7/13.
 *
 * @Description:
 * @Modified By:
 */
@Document(collection = "book_info")
public class BookInfo {
    @Id
    private  String Id;
    @Field("title")
    private String title;
    @Field("url")
    private String url;
    @Field("author")
    private String author;
    @Field("tags")
    private String tags;
    @Field("time")
    private Date time;

    public String getId() {
        return Id;
    }

    public String getTitle() {
        return title;
    }

    public String getUrl() {
        return url;
    }

    public String getAuthor() {
        return author;
    }

    public String getTags() {
        return tags;
    }

    public Date getTime() {
        return time;
    }

    public void setId(String id) {
        Id = id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "BookInfo{" +
                "Id='" + Id + '\'' +
                ", title='" + title + '\'' +
                ", url='" + url + '\'' +
                ", author='" + author + '\'' +
                ", tags='" + tags + '\'' +
                ", time='" + time + '\'' +
                '}';
    }
}
